package org.amicofragile.simpledsl

class Optimizer1 extends Optimizer {
	Closure criteria
	private groups = [other: {it}]

	def addGroupProcessor(String name, Closure c) {
		groups[name] = c
		this
	}

	static withCriteria(Closure c){
		new Optimizer1(criteria: c)
	}
}

